def filter_sensitive_fields(data, fields=None):
    """
    递归去除字典或字典列表中的指定字段（默认去除 createdBy, createdAt, updatedBy, updatedAt）
    """
    if fields is None:
        fields = ["createdBy", "createdAt", "updatedBy", "updatedAt"]
    if isinstance(data, dict):
        return {k: filter_sensitive_fields(v, fields) for k, v in data.items() if k not in fields}
    elif isinstance(data, list):
        return [filter_sensitive_fields(item, fields) for item in data]
    else:
        return data 